var e = require("../../common/vendor.js"), r = require("../../api/ajax.js"), t = require("../../config/config.js");

require("../../api/service.js"), require("../../utils/luch-request/core/Request.js"), 
require("../../utils/luch-request/core/dispatchRequest.js"), require("../../utils/luch-request/adapters/index.js"), 
require("../../utils/luch-request/helpers/buildURL.js"), require("../../utils/luch-request/utils.js"), 
require("../../utils/luch-request/core/buildFullPath.js"), require("../../utils/luch-request/helpers/isAbsoluteURL.js"), 
require("../../utils/luch-request/helpers/combineURLs.js"), require("../../utils/luch-request/core/settle.js"), 
require("../../utils/luch-request/core/InterceptorManager.js"), require("../../utils/luch-request/core/mergeConfig.js"), 
require("../../utils/luch-request/core/defaults.js"), require("../../utils/luch-request/utils/clone.js"), 
require("../../uni_modules/u-store/js_sdk/Storage.js");

var s = {
    props: {
        id: {
            type: String
        }
    },
    setup: function(e) {
        return {
            id: e.id
        };
    },
    data: function() {
        return {
            title: "",
            nodes: "",
            base: t.base,
            infoData: {}
        };
    },
    onLoad: function(e) {
        this.getInfoData();
    },
    methods: {
        getInfoData: function() {
            var s = this;
            r.doGetUrl("gallery.Gallery/detail", {
                gallery_id: this.id
            }).then(function(r) {
                console.log("res", r);
                var u = r.data;
                console.log("infoData", u), s.infoData = u;
                var i = u.content;
                s.nodes = i.replace(/\/uploads\//g, t.base.siteUrl + "/uploads/"), s.title = u.title, 
                e.index.setNavigationBarTitle({
                    title: s.title
                }), e.index.hideLoading();
            });
        }
    }
};

Array || e.resolveComponent("mp-html")(), Math;

var u = e._export_sfc(s, [ [ "render", function(r, t, s, u, i, l) {
    return {
        a: e.p({
            content: i.nodes
        })
    };
} ] ]);

wx.createPage(u);